package com.liangxin.qlmall_admin.sytem.pojo;

import java.util.Date;

public class Menu {

    // 菜单
    public static final String TYPE_MENU = "0";
    // 按钮
    public static final String TYPE_BUTTON = "1";

    public static final Long TOP_NODE = 0L;

    private Integer menuId;

    private Integer roleId;

    private String menuName;

    private String url;

    private String icon;

    private String type;

    private Long orderNum;

    private Date createTime;

    private Date modifyTime;

    private String perms;

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName == null ? null : menuName.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getPerms() {
        return perms;
    }

    public static String getTypeMenu() {
        return TYPE_MENU;
    }

    public static String getTypeButton() {
        return TYPE_BUTTON;
    }

    public static Long getTopNode() {
        return TOP_NODE;
    }

    public void setPerms(String perms) {
        this.perms = perms == null ? null : perms.trim();
    }
}